3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
Each metafile header includes a flag that indicates the uses to which file pointers and reference objects are put in that metafile. The left column below gives the form of the flag found in text metafiles, while the right colun gives the form found in binary metafiles.
Normal 0x00000000
Stream 0x00000001
Database 0x00000002
Uns16 majorVersion
Uns16 minorVersion
MetafileFlags flags
FilePointer tocLocation
A metafile header is a structure having four fields. The first two fields specify the version and revision numbers of the metafile. The third field contains a flag indicating the type of the metafile (normal, stream, or database). The fourth field contains a pointer to the location of a table of contents for the metafile. A metafile header in a file indicates that the file is a metafile and provides some information about its contents.
Each metafile must contain exactly one metafile header, and this header must precede every other object in that file. Though each metafile header contains a pointer to the location of a table of contents, there need be no corresponding table of contents in the metafile.
Previous | QD3D Book | Overview | Chapter Contents | Next |